package xyz.sicau.bootrabbitmq.config;

import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class SwaggerConfig {
    public Docket webApiConfig() {
        return new Docket(DocumentationType.SWAGGER_2)
                .groupName("webApi")
                .apiInfo(new ApiInfoBuilder()
                        .title("最开始写的title")
                        .description("最开始写的description")
                        .version("1.0")
                        .contact(new Contact("LSQ", "https://sicau.xyz", "2928318801@qq.com"))
                        .build())
                .select()
                .build();
    }
}
